<template>
    <div class="photoinfo-container">
        <h3>哈哈哈哈</h3>
        <p class="subtitle">
            <span>发表时间：2012-12-12 12:12:12</span>
            <span>点击：30次</span>
        </p>


        <hr>

        <!-- 缩略图 -->
             <vue-preview :slides="slide1" @close="handleClose"></vue-preview>
        <!-- 图片内容 -->
        <div class="container">
            <div>手机号打开就会看见撒谎的健康和</div>
        </div>

        <!-- 评论子组件 -->
        <cmt-box></cmt-box>
    </div>
</template>

<script>
import comment from '../subcomponents/comment.vue'

export default {
    data() {
        return {
            id:this.$route.parms.id,
            photoinfo:{}
        }
    },
    created() {
        this.getPhotoInfo()
    },
    methods: {
        getPhotoInfo() {
            this.$http.get('').then(result => {
                if (result.body.status === 0) {
                    this.photoinfo = result.body.message[0];
                }
            })
        }
    },
    components:{
        'cmt-box': comment
    }
}
</script>

<style lang="scss" scoped>
.photoinfo-container{
    padding: 3px;
    h3{
        color: #26A2FF;
        font-size: 15px;
        text-align: center;
        margin:15px;
    }
    .subtitle{
        display: flex;
        justify-content: space-between;
    }
    .container{
        font-size: 13px;
        line-height: 30px;
    }
}
</style>
